/*
 * @Author: xiaosihan 
 * @Date: 2023-08-10 11:24:00 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-01-07 05:45:47
 */

.toolFontFamily {
  position: relative;
  height: 30px;
  width: 172px;
  border-radius: 4px;
  text-align: center;
  line-height: 36px;
  margin: 5px;
  cursor: pointer;
  display: none;
  overflow: hidden;
  vertical-align: middle;
  border: 1px solid #B3B3B3;
  line-height: 25px;

  &.visible {
    display: inline-block;
  }

  &.disable {
    pointer-events: none;
    opacity: 0.5;
  }

  .fontImg {
    display: inline;
    max-height: 30px;
  }

}

.fontFamily {
  width: 140px;
  height: 300px;
  background-color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 2px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0);
  }

  &::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0);
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #ff9729;
  }

  .fontFamilyItem {
    cursor: pointer;
    height: 30px;
    line-height: 30px;

    &:hover {
      background-color: #f5f7fa;
    }

    &.active {
      background-color: #f0f2f5;
    }


    .img {
      display: inline-block;
      width: 120px;
    }
  }

}